-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
osmajorrelease is int instead of str since 2017.7.1 #60
Conversation
d7e32ac
to
582b5ff
Compare
osmajorrelease is int https://github.com/saltstack/salt/blob/v2017.7.1/salt/grains/core.py#L1675 Signed-off-by: Minh-Quan TRAN <account@itscaro.me>
Thanks for this PR, @itscaro. I fixed the hyperlink you provided since it was a I was about to suggest how to get the |
OK, the link for CentOS 8 needs updating to: Would you mind adding that as well, @itscaro? |
@itscaro Something like the following to pass the
|
I saw the error in Gitlab and push another commit in this PR. |
@itscaro Thanks, we just need all of the commits to make -update to epel-release-8-10.el8.noarch.rpm
+fix(map.jinja): update to `epel-release-8-10.el8.noarch.rpm` |
Yes I did not realized that I was in a forked repo :) - I changed after you passed by (sorry I didn't see the comments, was trying to fix lint :) ) Sorry again for the lint errors |
Signed-off-by: Minh-Quan TRAN <account@itscaro.me>
No problem at all, it took us some time to get used to it as well! If GitLab passes, then we'll merge this. Don't worry about the other |
Merged, thanks for the fix, @itscaro! |
🎉 This PR is included in version 1.15.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
No, this is a known bug that I've reported: Don't worry, it's not your fault. We don't have to open another PR to fix it, the main information we need is there and people can click the hyperlinks to see the commits. Thanks again! |
Cf type changed for osmajorrelease: https://github.com/saltstack/salt/blob/v2017.7.1/salt/grains/core.py#L1675
After digging a bit, I found the reason why this formula is backward compatible, there is type trying in this function which is used by
filter_by
function defined insalt/modules/grains.py
https://github.com/saltstack/salt/blob/4669f1373a5524fd22a45ff730717a382272f753/salt/utils/data.py#L815-L839
I encountered this issue when using
salt-ssh
which uses another version offilter_by
function provided bysalt/client/ssh/wrapper/grains.py
, which is type-enforced.Fixes #58
PR progress checklist (to be filled in by reviewers)
What type of PR is this?
Primary type
[build]
Changes related to the build system[chore]
Changes to the build process or auxiliary tools and libraries such as documentation generation[ci]
Changes to the continuous integration configuration[feat]
A new feature[fix]
A bug fix[perf]
A code change that improves performance[refactor]
A code change that neither fixes a bug nor adds a feature[revert]
A change used to revert a previous commit[style]
Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)Secondary type
[docs]
Documentation changes[test]
Adding missing or correcting existing testsDoes this PR introduce a
BREAKING CHANGE
?Yes for version < 2017.7
Related issues and/or pull requests
Describe the changes you're proposing
Pillar / config required to test the proposed changes
Debug log showing how the proposed changes work
Documentation checklist
README
(e.g.Available states
).pillar.example
.Testing checklist
state_top
).Additional context